<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Space Manager: src/cpSpaceSerializer/cpSpaceSerializer.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Space Manager
   &#160;<span id="projectnumber">0.2.0</span>
   </div>
   <div id="projectbrief">Objective-C wrapper around chipmunk</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('cp_space_serializer_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">cpSpaceSerializer.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="cp_space_serializer_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">//  cpSpaceSerializer.h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">//  Created by Robert Blackwood on 4/8/10.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//  Copyright 2010 Mobile Bros. All rights reserved.</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#ifndef __CPSPACESERIALIZER_H__</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"><a class="code" href="cp_space_serializer_8h.html#aa21d15bcdad4b0f9b8c8d5023170964c">   10</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define __CPSPACESERIALIZER_H__</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;tinyxml/tinyxml.h&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//extern &quot;C&quot; {</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &quot;chipmunk.h&quot;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">//}</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="code" href="cp_space_serializer_8h.html#a8cb859ab15a471ddef05a880ac60b41c">   20</a></span>&#160;<span class="keyword">typedef</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> <a class="code" href="cp_space_serializer_8h.html#a8cb859ab15a471ddef05a880ac60b41c">CPSS_ID</a>;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="code" href="cp_space_serializer_8h.html#a7389a52166405857d02dd5966a6f1eca">   22</a></span>&#160;<span class="preprocessor">#define CPSS_DEFAULT_MAKE_ID(ptr) (reinterpret_cast&lt;long&gt;(ptr))</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="code" href="classcp_space_serializer_delegate.html">   24</a></span>&#160;<span class="keyword">class </span><a class="code" href="classcp_space_serializer_delegate.html">cpSpaceSerializerDelegate</a></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;{</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="code" href="classcp_space_serializer_delegate.html#aff688a2ccd69591e680dee868de92256">   27</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="cp_space_serializer_8h.html#a8cb859ab15a471ddef05a880ac60b41c">CPSS_ID</a> <a class="code" href="classcp_space_serializer_delegate.html#aff688a2ccd69591e680dee868de92256">makeId</a>(cpShape* shape) {<span class="keywordflow">return</span> <a class="code" href="cp_space_serializer_8h.html#a7389a52166405857d02dd5966a6f1eca">CPSS_DEFAULT_MAKE_ID</a>(shape);}</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="code" href="classcp_space_serializer_delegate.html#adf943471b4cb849e205e081a854bab16">   30</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="cp_space_serializer_8h.html#a8cb859ab15a471ddef05a880ac60b41c">CPSS_ID</a> <a class="code" href="classcp_space_serializer_delegate.html#adf943471b4cb849e205e081a854bab16">makeId</a>(cpBody* body) {<span class="keywordflow">return</span> <a class="code" href="cp_space_serializer_8h.html#a7389a52166405857d02dd5966a6f1eca">CPSS_DEFAULT_MAKE_ID</a>(body);}</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="code" href="classcp_space_serializer_delegate.html#a9c5407cae4e20ac55471a9f2c4e7d3d8">   31</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="cp_space_serializer_8h.html#a8cb859ab15a471ddef05a880ac60b41c">CPSS_ID</a> <a class="code" href="classcp_space_serializer_delegate.html#a9c5407cae4e20ac55471a9f2c4e7d3d8">makeId</a>(cpConstraint* constraint) {<span class="keywordflow">return</span> <a class="code" href="cp_space_serializer_8h.html#a7389a52166405857d02dd5966a6f1eca">CPSS_DEFAULT_MAKE_ID</a>(constraint);}</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    </div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="code" href="classcp_space_serializer_delegate.html#a11cddf1e7f9edc11e630ae543e4fbbcc">   33</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classcp_space_serializer_delegate.html#a11cddf1e7f9edc11e630ae543e4fbbcc">writing</a>(cpShape *shape, <a class="code" href="cp_space_serializer_8h.html#a8cb859ab15a471ddef05a880ac60b41c">CPSS_ID</a> shapeId) {<span class="keywordflow">return</span> <span class="keyword">true</span>;}</div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="code" href="classcp_space_serializer_delegate.html#a2395af6b8c7c535e6ca35a6d15a64729">   34</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classcp_space_serializer_delegate.html#a2395af6b8c7c535e6ca35a6d15a64729">writing</a>(cpBody *body, <a class="code" href="cp_space_serializer_8h.html#a8cb859ab15a471ddef05a880ac60b41c">CPSS_ID</a> bodyId) {<span class="keywordflow">return</span> <span class="keyword">true</span>;}</div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="code" href="classcp_space_serializer_delegate.html#ae0fbb4bd08c0cc6d87b10183e6d25eeb">   35</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classcp_space_serializer_delegate.html#ae0fbb4bd08c0cc6d87b10183e6d25eeb">writing</a>(cpConstraint *constraint, <a class="code" href="cp_space_serializer_8h.html#a8cb859ab15a471ddef05a880ac60b41c">CPSS_ID</a> constraintId) {<span class="keywordflow">return</span> <span class="keyword">true</span>;}</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    </div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="code" href="classcp_space_serializer_delegate.html#accd9f1664bb11c139bbb92ff48c00128">   37</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classcp_space_serializer_delegate.html#accd9f1664bb11c139bbb92ff48c00128">reading</a>(cpShape *shape, <a class="code" href="cp_space_serializer_8h.html#a8cb859ab15a471ddef05a880ac60b41c">CPSS_ID</a> shapeId) {<span class="keywordflow">return</span> <span class="keyword">true</span>;}</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="code" href="classcp_space_serializer_delegate.html#a1e6bd621365832679dfe7705149d0796">   38</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classcp_space_serializer_delegate.html#a1e6bd621365832679dfe7705149d0796">reading</a>(cpBody *body, <a class="code" href="cp_space_serializer_8h.html#a8cb859ab15a471ddef05a880ac60b41c">CPSS_ID</a> bodyId) {<span class="keywordflow">return</span> <span class="keyword">true</span>;}</div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="code" href="classcp_space_serializer_delegate.html#a448322cdbe6fa3d9d066c58f942c3b47">   39</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classcp_space_serializer_delegate.html#a448322cdbe6fa3d9d066c58f942c3b47">reading</a>(cpConstraint *constraint, <a class="code" href="cp_space_serializer_8h.html#a8cb859ab15a471ddef05a880ac60b41c">CPSS_ID</a> constraintId) {<span class="keywordflow">return</span> <span class="keyword">true</span>;}</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;};</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="code" href="classcp_space_serializer.html">   42</a></span>&#160;<span class="keyword">class </span><a class="code" href="classcp_space_serializer.html">cpSpaceSerializer</a> </div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;{</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="code" href="classcp_space_serializer.html#a3f86e0b9d9b4d1f665288989ce161a09">   45</a></span>&#160;    <a class="code" href="classcp_space_serializer.html#a3f86e0b9d9b4d1f665288989ce161a09">cpSpaceSerializer</a>() : <a class="code" href="classcp_space_serializer.html#a116d1d7ad9b68603188fd0b5f837e2f5">delegate</a>(NULL) {}</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="classcp_space_serializer.html#a2a7cf71cfc2c87e6ec9f5c2a499e0783">   46</a></span>&#160;    <a class="code" href="classcp_space_serializer.html#a2a7cf71cfc2c87e6ec9f5c2a499e0783">cpSpaceSerializer</a>(<a class="code" href="classcp_space_serializer_delegate.html">cpSpaceSerializerDelegate</a> *<a class="code" href="classcp_space_serializer.html#a116d1d7ad9b68603188fd0b5f837e2f5">delegate</a>) : delegate(delegate) {}</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    </div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    cpSpace* <a class="code" href="classcp_space_serializer.html#a12c846bf01087344cee36b8f7d5c89ab">load</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* filename);</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    cpSpace* <a class="code" href="classcp_space_serializer.html#a12c846bf01087344cee36b8f7d5c89ab">load</a>(cpSpace *space, <span class="keyword">const</span> <span class="keywordtype">char</span>* filename);</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classcp_space_serializer.html#a8fa886dc91a14eb36915a357ef0274ee">save</a>(cpSpace* space, <span class="keyword">const</span> <span class="keywordtype">char</span>* filename);</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    </div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="code" href="classcp_space_serializer.html#a116d1d7ad9b68603188fd0b5f837e2f5">   52</a></span>&#160;    <a class="code" href="classcp_space_serializer_delegate.html">cpSpaceSerializerDelegate</a> *<a class="code" href="classcp_space_serializer.html#a116d1d7ad9b68603188fd0b5f837e2f5">delegate</a>;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        </div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="comment">//Reading</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keyword">virtual</span> cpShape *<a class="code" href="classcp_space_serializer.html#acac777b4f422d6f8862e898758b05c51">createShape</a>(TiXmlElement *elm);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    cpShape *<a class="code" href="classcp_space_serializer.html#afc8a68217c3a6cb0fd4ba23f5fc0887f">createCircle</a>(TiXmlElement *elm);</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    cpShape *<a class="code" href="classcp_space_serializer.html#a243a4061e174925f9a7c8f819d53c79c">createSegment</a>(TiXmlElement *elm);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    cpShape *<a class="code" href="classcp_space_serializer.html#a7d91c9b0ab79a32ec97f4f409fc50439">createPoly</a>(TiXmlElement *elm);</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    </div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    cpBody *<a class="code" href="classcp_space_serializer.html#a5ee640296278561faeaae8a6ee9593ba">createBody</a>(TiXmlElement *elm);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    </div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcp_space_serializer.html#ac0361c4c1675fd7d0f0727c1fb4523dd">createBodies</a>(TiXmlElement *elm, cpBody **a, cpBody **b);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <span class="keyword">virtual</span> cpConstraint *<a class="code" href="classcp_space_serializer.html#a1ec0ab8d663d82da71a04e4fb4f5e512">createConstraint</a>(TiXmlElement *elm);</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    cpConstraint *<a class="code" href="classcp_space_serializer.html#aec29716a067a9f1a07988a88fae92a6d">createPinJoint</a>(TiXmlElement *elm);</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    cpConstraint *<a class="code" href="classcp_space_serializer.html#a29adcd5c7a36f00254a52ff91e32910a">createSlideJoint</a>(TiXmlElement *elm);</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    cpConstraint *<a class="code" href="classcp_space_serializer.html#aee64f652eace5b5e5a62ed5d5ba0d975">createPivotJoint</a>(TiXmlElement *elm);</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    cpConstraint *<a class="code" href="classcp_space_serializer.html#a120b1ef16509de672efe727960262f74">createGrooveJoint</a>(TiXmlElement *elm);</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    cpConstraint *<a class="code" href="classcp_space_serializer.html#a2edb0e4bc10d4593dd852be9ad20474d">createMotorJoint</a>(TiXmlElement *elm);</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    cpConstraint *<a class="code" href="classcp_space_serializer.html#ae9354c48e601f90c9916d11ca366d0a4">createGearJoint</a>(TiXmlElement *elm);</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    cpConstraint *<a class="code" href="classcp_space_serializer.html#aa53bb487d6e277845ce42f6a4f896339">createSpringJoint</a>(TiXmlElement *elm);</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    cpConstraint *<a class="code" href="classcp_space_serializer.html#a9fe6e757ad473216bb934b5cd7b880f1">createRotaryLimitJoint</a>(TiXmlElement *elm);</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    cpConstraint *<a class="code" href="classcp_space_serializer.html#a6e40e69d3e42510c76f0876419c5c82b">createRatchetJoint</a>(TiXmlElement *elm);</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    cpConstraint *<a class="code" href="classcp_space_serializer.html#a5f3bd001e0a83f9518975507b0659992">createRotarySpringJoint</a>(TiXmlElement *elm);</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    </div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    cpVect <a class="code" href="classcp_space_serializer.html#a9e25c86146937c80deab4987b7ba0246">createPoint</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, TiXmlElement *elm);</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    </div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="comment">//Writing</span></div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="keyword">virtual</span> TiXmlElement *<a class="code" href="classcp_space_serializer.html#a84f553e3e50675d4640466a1aa441737">createShapeElm</a>(cpShape *shape);</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    TiXmlElement *<a class="code" href="classcp_space_serializer.html#a900768a7a2788eb5516f4daa53664e4b">createCircleElm</a>(cpShape *shape);</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    TiXmlElement *<a class="code" href="classcp_space_serializer.html#a7f343f35c37582d289df200450f1338b">createSegmentElm</a>(cpShape *shape);</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    TiXmlElement *<a class="code" href="classcp_space_serializer.html#a6bb2f3e59dd6eb9532abf6b41b268f1c">createPolyElm</a>(cpShape *shape);</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    TiXmlElement *<a class="code" href="classcp_space_serializer.html#a5cdbd8d0f500ff76f413a4f526a0f3c4">createBodyElm</a>(cpBody *body);</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    </div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <span class="keyword">virtual</span> TiXmlElement *<a class="code" href="classcp_space_serializer.html#a4a3f22df3a9910f692403cf5f483dae0">createConstraintElm</a>(cpConstraint *constraint);</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    TiXmlElement *<a class="code" href="classcp_space_serializer.html#afbcc1dfa77b47adff6d0f1650ce10de7">createPinJointElm</a>(cpPinJoint *constraint);</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    TiXmlElement *<a class="code" href="classcp_space_serializer.html#a1a4db4bd2bab6e3b99d3fd7deafe4bab">createSlideJointElm</a>(cpSlideJoint *constraint);</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    TiXmlElement *<a class="code" href="classcp_space_serializer.html#ad9121b9ef4c21c5c4f7d4761ef130ee3">createPivotJointElm</a>(cpPivotJoint *constraint);</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    TiXmlElement *<a class="code" href="classcp_space_serializer.html#ac2a686e579610e996ea8b100e86db447">createGrooveJointElm</a>(cpGrooveJoint *constraint);</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    TiXmlElement *<a class="code" href="classcp_space_serializer.html#ad7e864b5e2b2d122a0403113dce9ee76">createMotorJointElm</a>(cpSimpleMotor *constraint);</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    TiXmlElement *<a class="code" href="classcp_space_serializer.html#afe49ad560b6c85c7011f65d6d33d093a">createGearJointElm</a>(cpGearJoint *constraint);</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    TiXmlElement *<a class="code" href="classcp_space_serializer.html#aa951eb54803e0efac6263863bb619a2b">createSpringJointElm</a>(cpDampedSpring *constraint);</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    TiXmlElement *<a class="code" href="classcp_space_serializer.html#aedd18da09e11967d257de8cd90b1e9c8">createRotaryLimitJointElm</a>(cpRotaryLimitJoint *constraint);</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    TiXmlElement *<a class="code" href="classcp_space_serializer.html#a963a62f133c288187ac75024976e0e1a">createRatchetJointElm</a>(cpRatchetJoint *constraint);</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    TiXmlElement *<a class="code" href="classcp_space_serializer.html#ad6cb2c61b4d393de4465e46f628dada6">createRotarySpringJointElm</a>(cpDampedRotarySpring *constraint);</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    </div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    TiXmlElement *<a class="code" href="classcp_space_serializer.html#a23d8c6a5b09fbbd799d8c77b34537bdb">createPointElm</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, cpVect pt);</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    </div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="code" href="classcp_space_serializer.html#a90d60b14fd9448138638c19c6cdaadd8">   99</a></span>&#160;    <span class="keyword">typedef</span> std::map&lt;CPSS_ID, cpBody*&gt; <a class="code" href="classcp_space_serializer.html#a90d60b14fd9448138638c19c6cdaadd8">BodyMap</a>;</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="code" href="classcp_space_serializer.html#aa594c005ae780c8be1031fdf9383f130">  100</a></span>&#160;    <span class="keyword">typedef</span> std::map&lt;CPSS_ID, cpShape*&gt; <a class="code" href="classcp_space_serializer.html#aa594c005ae780c8be1031fdf9383f130">ShapeMap</a>;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="code" href="classcp_space_serializer.html#a7c7a2261d03c4c403251dd1ae7fa1ac1">  102</a></span>&#160;    <a class="code" href="classcp_space_serializer.html#a90d60b14fd9448138638c19c6cdaadd8">BodyMap</a>&amp; <a class="code" href="classcp_space_serializer.html#a7c7a2261d03c4c403251dd1ae7fa1ac1">bodyMap</a>() { <span class="keywordflow">return</span> _bodyMap; }</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="code" href="classcp_space_serializer.html#a2eba552794a39b8fcbf59249e196d426">  103</a></span>&#160;    <a class="code" href="classcp_space_serializer.html#aa594c005ae780c8be1031fdf9383f130">ShapeMap</a>&amp; <a class="code" href="classcp_space_serializer.html#a2eba552794a39b8fcbf59249e196d426">shapeMap</a>() { <span class="keywordflow">return</span> _shapeMap; }</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    TiXmlDocument   _doc;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    cpSpace         *_space;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    </div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <span class="comment">//For Resolving on read and avoiding redundancies on write    </span></div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <a class="code" href="classcp_space_serializer.html#a90d60b14fd9448138638c19c6cdaadd8">BodyMap</a>     _bodyMap;</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    <a class="code" href="classcp_space_serializer.html#aa594c005ae780c8be1031fdf9383f130">ShapeMap</a>    _shapeMap;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;};</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="preprocessor">#endif // __CPSPACESERIALIZER_H__</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_e897c4c17022cacb2ddeee4d2f1a6b0a.html">cpSpaceSerializer</a></li><li class="navelem"><a class="el" href="cp_space_serializer_8h.html">cpSpaceSerializer.h</a></li>
    <li class="footer">Generated on Sun Sep 16 2012 13:09:50 for Space Manager by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
